<?php

// $dt = new DateTime('-15days');
// echo $dt->format('Y-m-d H:i:s');

echo (new DateTime('-15days', new \DateTimeZone('PRC')))->format('Y-m-d H:i:s');
exit;
$arr = [
    ['test' => 1111, 'aa' => 1515],
    ['test' => 1111, 'aa' => 1515],
    ['test' => 1111, 'aa' => 1515],
    ['test' => 1111, 'aa' => 1515],
];

array_walk($arr, function(&$val){
    unset($val['aa']);
});
var_dump($arr);

exit;
//101
// $current_order_type = 12;
// echo $current_order_type ^ (1 << strlen(base_convert($current_order_type, 10, 2)) - 1);

// exit;
//
$cerfile_path = __DIR__.DIRECTORY_SEPARATOR;
$cer_name = 'fiddler.pub';
$cerfile = $cerfile_path.$cer_name;
$str = file_get_contents($cerfile);
$pub_key = openssl_pkey_get_public($str);
$key = openssl_pkey_get_details($pub_key);

//
// $a = openssl_x509_read($cerfile_path);

var_dump($cerfile,$pub_key);
